//
//  MKUITabBarContentView.m
//  MKUI
//
//  Created by sushangjin on 16/3/29.
//  Copyright © 2016年 sushangjin. All rights reserved.
//

#import "MKUITabBarContentView.h"

@interface MKUITabBarContentView (){
    UITabBarItem *_tabBarItem;
}
@property(nonatomic,strong) UIView *contentView;
@end

@implementation MKUITabBarContentView
- (id)initWithFrame:(CGRect)frame{
	if (self=[super initWithFrame:frame]) {
		[self __init_MKUITabBarContentView];
	}
	return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder{
	if (self=[super initWithCoder:aDecoder]) {
		[self __init_MKUITabBarContentView];
	}
	return self;
}
- (void)__init_MKUITabBarContentView{
    self.contentView = [[UIView alloc] init];
    [self addSubview:self.contentView];
}
- (void)layoutSubviews{
	[super layoutSubviews];
	CGRect bounds = self.bounds;
    self.contentView.frame = bounds;
}
+ (Class)tabBarItemClass{
    return [UITabBarItem class];
}
- (UITabBarItem *)tabBarItem{
	if(!_tabBarItem){
        Class aClass = [self.class tabBarItemClass];
		_tabBarItem = [[aClass alloc] init];
	}
	return _tabBarItem;
}
- (UIView *)tabBarContentView{
    return self;
}
- (void)tabBarContentViewWillAppear:(BOOL)animated{
    
}
- (void)tabBarContentViewWillDisapper:(BOOL)animated{
    
}
- (void)tabBarContentViewDidAppear:(BOOL)animated{
    
}
- (void)tabBarContentViewDidDisapper:(BOOL)animated{
    
}
@end
